package internal

func LinearSearch[T comparable](list []T, target T) *int {
	for i, v := range list {
		if target == v {
			return &i
		}
	}
	return nil
}
